#ifndef __WEB_VIEW_H__
#define __WEB_VIEW_H__

#include "2d/CCNode.h"
#include "base/ccTypes.h"

NS_CC_BEGIN
class WebViewImpl;
class CC_DLL WebView : public Node
{
public:
	WebView();
	virtual ~WebView();

	virtual void draw(Renderer *renderer, const Mat4& transform, uint32_t flags);
	
	void _didFinishLoading(const std::string& url);
	void _didFailLoading(const std::string& url);
	std::string _onJsCallback(const std::string& cmd, const std::string& data);
private:
	WebViewImpl *_impl;
	friend class WebViewImpl;

};
NS_CC_END
#endif